package com.be.beadmin.system.controller.ProjectDesignController;

import com.be.beadmin.common.entity.PageEntity;
import com.be.beadmin.common.utils.ResultModel;
import com.be.beadmin.system.service.ProjectDesignSevice.BatchProductPdService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 15:03 2023/6/19
 * @Modified By:
 **/
@Api(tags = {"项目-设计公共模块-批次柜体"})
@RestController
public class BatchProductPdController {

    @Autowired
    private BatchProductPdService batchProductPdService;

    //柜体设计获取
    @ApiOperation("获取柜体设计-待提交0")
    @PostMapping("/project/getBatchProductDesign0")
    public ResultModel getBatchProductDesign0(HttpServletRequest request,@RequestBody PageEntity pageEntity) {

        return ResultModel.success(batchProductPdService.getBatchProductDesign0(request,pageEntity));

    }
    @ApiOperation("获取柜体设计-待提交0-项目名称查询")
    @PostMapping("/project/getBatchProductDesign01")
    public ResultModel getBatchProductDesign01(HttpServletRequest request,
                                               @ApiParam(value = "ProjectName") @RequestParam String projectName,
                                               @RequestBody PageEntity pageEntity) {

        return ResultModel.success(batchProductPdService.getBatchProductDesign01( projectName,request,pageEntity));

    }
    @ApiOperation("获取柜体设计-待提交0-项目编码查询")
    @PostMapping("/project/getBatchProductDesign02")
    public ResultModel getBatchProductDesign02(HttpServletRequest request,
                                               @ApiParam(value = "ProjectCode") @RequestParam String projectCode,
                                               @RequestBody PageEntity pageEntity) {

        return ResultModel.success(batchProductPdService.getBatchProductDesign02( projectCode,request,pageEntity));

    }
    @ApiOperation("获取柜体设计-待审核1")
    @PostMapping("/project/getBatchProductDesign1")
    public ResultModel getBatchProductDesign1(HttpServletRequest request,@RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign1(request,pageEntity));

    }
    @ApiOperation("获取柜体设计-待审核1-项目名称查询")
    @PostMapping("/project/getBatchProductDesign11")
    public ResultModel getBatchProductDesign11(HttpServletRequest request,
                                               @ApiParam(value = "ProjectName") @RequestParam String projectName,
                                               @RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign11(projectName,request,pageEntity));

    }
    @ApiOperation("获取柜体设计-待审核1-项目编码查询")
    @PostMapping("/project/getBatchProductDesign12")
    public ResultModel getBatchProductDesign12(HttpServletRequest request,
                                               @ApiParam(value = "ProjectCode") @RequestParam String projectCode,
                                               @RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign12(projectCode,request,pageEntity));

    }
    @ApiOperation("获取柜体设计-已审核2")
    @PostMapping("/project/getBatchProductDesign2")
    public ResultModel getBatchProductDesign2(HttpServletRequest request,@RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign2(request,pageEntity));

    }
    @ApiOperation("获取柜体设计-已审核2-项目名称查询")
    @PostMapping("/project/getBatchProductDesign21")
    public ResultModel getBatchProductDesign21(HttpServletRequest request,
                                               @ApiParam(value = "ProjectName") @RequestParam String projectName,
                                               @RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign21(projectName,request,pageEntity));

    }
    @ApiOperation("获取柜体设计-已审核2-项目编码查询")
    @PostMapping("/project/getBatchProductDesign22")
    public ResultModel getBatchProductDesign22(HttpServletRequest request,
                                               @ApiParam(value = "ProjectCode") @RequestParam String projectCode,
                                               @RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign22(projectCode,request,pageEntity));

    }
    @ApiOperation("获取柜体设计-已下发3")
    @PostMapping("/project/getBatchProductDesign3")
    public ResultModel getBatchProductDesign3(HttpServletRequest request,@RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign3(request,pageEntity));

    }
    @ApiOperation("获取柜体设计-已下发3-项目名称查询")
    @PostMapping("/project/getBatchProductDesign31")
    public ResultModel getBatchProductDesign31(HttpServletRequest request,
                                               @ApiParam(value = "ProjectName") @RequestParam String projectName,
                                               @RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign31(projectName,request,pageEntity));

    }
    @ApiOperation("获取柜体设计-已下发3-项目编码查询")
    @PostMapping("/project/getBatchProductDesign32")
    public ResultModel getBatchProductDesign32(HttpServletRequest request,
                                               @ApiParam(value = "ProjectCode") @RequestParam String projectCode,
                                               @RequestBody PageEntity pageEntity) {


        return ResultModel.success(batchProductPdService.getBatchProductDesign32(projectCode,request,pageEntity));

    }

}
